package com.atguigu.eduorder.Client;

import com.atguigu.commonutils.OrderVo.OrderMember;
import com.atguigu.eduorder.Client.hystrix.UcentImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author cyt
 * @create 2020-06-02 16:13
 */

@Component
@FeignClient(name = "service-ucenter", fallback = UcentImpl.class)
public interface UcenterClient {

    @GetMapping("/ucenterservice/apimember/getOrderMember/{id}")
    public OrderMember getOrderMember(@PathVariable("id") String id);
}
